function parse_fee_asset(input: map<text, gtv>, module_name: text): fee_asset

Parses a dictionary retrieved from the module_args of a module and returns the corresponding fee_asset.

Throws "CONFIG ERROR" if the fee_asset is invalid.

Parameters

  • input — the dictionary retrieved from the module_args
  • module_name — the name of the module for better error messages

See Also

  • fee_asset — for a definition of invalid values.
© 2024 Chromia